plat=pc
CFLAGS = -O2 -Wall

ifeq ($(plat), smart)
  CXX=arm-vfp-linux-gnu-g++
  AC=arm-vfp-linux-gnu-ar
  PROG = libarm-vfp-linux-gnu-unp.a
endif

ifeq ($(plat), mini)
  CXX=arm-linux-g++
  AC=arm-linux-ar
  PROG = libarm-linux-unp.a 
endif

ifeq ($(palt), pc)
  CXX=g++
  AC=ac
  PROG = libunp.a
endif

${PROG} : unp.o
	$(AC) cr $(PROG) unp.o 

unp.o : unp.h

.PHONY : clean
clean:
	rm *.o
